package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.FintechRiskType;
import com.appkubes.mall.core.po.FintechRiskTypeExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface FintechRiskTypeMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_type
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRiskTypeSqlProvider.class, method="countByExample")
    long countByExample(FintechRiskTypeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_type
     *
     * @mbg.generated
     */
    @DeleteProvider(type=FintechRiskTypeSqlProvider.class, method="deleteByExample")
    int deleteByExample(FintechRiskTypeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_type
     *
     * @mbg.generated
     */
    @Delete({
        "delete from fintech_risk_type",
        "where risk_type = #{riskType,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String riskType);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_type
     *
     * @mbg.generated
     */
    @Insert({
        "insert into fintech_risk_type (risk_type, risk_type_name, ",
        "description)",
        "values (#{riskType,jdbcType=VARCHAR}, #{riskTypeName,jdbcType=VARCHAR}, ",
        "#{description,jdbcType=VARCHAR})"
    })
    int insert(FintechRiskType record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_type
     *
     * @mbg.generated
     */
    @InsertProvider(type=FintechRiskTypeSqlProvider.class, method="insertSelective")
    int insertSelective(FintechRiskType record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_type
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRiskTypeSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="risk_type", property="riskType", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="risk_type_name", property="riskTypeName", jdbcType=JdbcType.VARCHAR),
        @Result(column="description", property="description", jdbcType=JdbcType.VARCHAR)
    })
    List<FintechRiskType> selectByExampleWithRowbounds(FintechRiskTypeExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_type
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRiskTypeSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="risk_type", property="riskType", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="risk_type_name", property="riskTypeName", jdbcType=JdbcType.VARCHAR),
        @Result(column="description", property="description", jdbcType=JdbcType.VARCHAR)
    })
    List<FintechRiskType> selectByExample(FintechRiskTypeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_type
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "risk_type, risk_type_name, description",
        "from fintech_risk_type",
        "where risk_type = #{riskType,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="risk_type", property="riskType", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="risk_type_name", property="riskTypeName", jdbcType=JdbcType.VARCHAR),
        @Result(column="description", property="description", jdbcType=JdbcType.VARCHAR)
    })
    FintechRiskType selectByPrimaryKey(String riskType);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_type
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRiskTypeSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") FintechRiskType record, @Param("example") FintechRiskTypeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_type
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRiskTypeSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") FintechRiskType record, @Param("example") FintechRiskTypeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_type
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRiskTypeSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(FintechRiskType record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_type
     *
     * @mbg.generated
     */
    @Update({
        "update fintech_risk_type",
        "set risk_type_name = #{riskTypeName,jdbcType=VARCHAR},",
          "description = #{description,jdbcType=VARCHAR}",
        "where risk_type = #{riskType,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(FintechRiskType record);
}